package com.ganbo.thread.wait;

/**
 * @Author: ganbo
 * @Date: 2020/5/20 15:09
 */
public class WaitDemo {

    public static void main(String[] args) throws InterruptedException {


        String lock = new String();

        synchronized (lock) {
            System.out.println("syn 第一行代码...");
            lock.wait(30000);
            System.out.println("wait 下面一行...");
        }
    }


}
